/*
 * lab1.fx
 *
 * Created on 12.09.2009, 22:30:13
 */
//нет такого пакета
package src.javafx179labs.vetkin.lab1;

/**
 * @author Алексей
 */

// place your code here

import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.text.Text;
import javafx.scene.text.Font;
import javafx.scene.paint.*;
import javafx.scene.effect.*;
import javafx.scene.text.*;
import javafx.scene.transform.*;
import javafx.scene.shape.*;
import javafx.scene.Scene.*;
import javafx.scene.effect.light.*;




/**
 * @author Алексей
 */

Stage {
    title: "Тест!"
    width: 800
    height: 600
    scene: Scene {
            fill: Color.YELLOW
        content: [

            /////////////////////////////////////////////////
            Text {
                transforms: Rotate { angle: 40 }
                font: Font.font(null, FontWeight.BOLD, 90);
                fill: Color.BLUE
                effect: InnerShadow { offsetX: 4 offsetY: 4 }
                x: 220
                y: 100
                content: "=)"
            }
            //////////////////////////////////////////////////
            Text {
                transforms: [Rotate { angle: 48 }
                            Shear { x: -0.35 y: 0 }]
                font: Font.font(null, FontWeight.BOLD, 90);
                fill: Color.RED
                effect: DropShadow { offsetY: 8 }
                x: 220
                y: 180
                content: "=)"
            }
            ///////////////////////////////////////////////////
            Circle {
                centerX: 10, centerY: 90
                radius: 70
                fill: Color.AQUA
            }
            /////////////////////////////////////////////////
            Rectangle {
                transforms: Rotate { angle: 15},
                x:420, y:0
                height: 600, width: 380
                arcHeight: 30, arcWidth: 0
                fill: Color.GOLD
            }
           /////////////////////////////////////////////////
           Path {
                elements: [
                MoveTo { x: 0    y: 480 },
                LineTo { x: 400  y: 300},
                MoveTo { x: 800    y: 499 },
                LineTo { x: 420  y: 300},
                MoveTo { x: 280    y: 600 },
                LineTo { x: 405  y: 300},
                ]
            }
            ////////////////////////////////////////////////
            Text {
                transforms: Shear { x: -0.35 y: 0 }
                font: Font.font(null, FontWeight.BOLD, 50);
                fill: Color.RED
                effect: GaussianBlur {}
                x: 100
                y: 100
                content: "Оно работает!"
            }
            ///////////////////////////////////////////////
            Arc {centerX: 200, centerY: 400,
                    radiusX: 90, radiusY: 120, startAngle: 55, length: 200,
                    type: ArcType.ROUND, fill:Color.OLIVE,
                    effect: BoxBlur { width: 15 height: 15 iterations: 2 },
                    transforms: Rotate {pivotX:40}}
            //////////////////////////////////////////////
            Circle { centerX: 30,centerY: 90, radius:40 , fill: Color.DARKCYAN }
            /////////////////////////////////////////////
            Rectangle {x: 180, y:290, arcHeight:20 ,
            arcWidth: 40, height:40, width:50,
            fill: Color.BLUEVIOLET
            effect: GaussianBlur {}}
            /////////////////////////////////////////////
            Circle {centerX: 700, centerY:200, radius: 70, fill: Color.RED,

            }
            /////////////////////////////////////////////
            Circle { centerX:700, centerY:200,
                    radius: 50, fill: Color.BROWN}
            /////////////////////////////////////////////
            Circle { centerX:700 ,centerY:200
                    radius: 30, fill: Color.GREEN }
            /////////////////////////////////////////////
            Text {
            effect: Lighting {
                    light:  DistantLight { azimuth: -110 }
                            surfaceScale: 4
                        }
            textOrigin: TextOrigin.TOP
            x: 500 y: 500
            content: "JavaFX"
            fill: Color.GOLD
            font: Font.font(null, FontWeight.BOLD, 70);
            }
       ]
    }
}